﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using Data;
using System.Data;

namespace BLL
{
    public class CustomerBLL
    {
        CustomerData ctmE = new CustomerData();
        public CustomersEntity GetCustomer(CustomersEntity ctE)
        {
            return ctmE.GetCustomer(ctE);
        }
        CustomerData custD = new CustomerData();
        public DataTable ViewHistory(CardsEntity cE)
        {
            return custD.ViewHistory(cE);
        }

        public void Withdraw(Decimal amount, int accountID, string cardNo)
        {
            ctmE.Withdraw(amount, accountID, cardNo);
        }

        public Decimal GetBalance(int accountID)
        {
            return ctmE.GetBalance(accountID);
        }

        public Decimal GetMoney(int moneyID)
        {
            return ctmE.GetMoney(moneyID);
        }
    }
}
